package com.itheima.crm.mapper;

import java.util.List;

import com.itheima.crm.pojo.YuanGong;


public interface YuanGongDao {

	
	//总条数
	public Integer yuangongCountByQueryVo(YuanGong vo);
	//结果集
	public List<YuanGong> selectYuanGongListByQueryVo(YuanGong vo);
	
	//通过ID查询客户
	public YuanGong selectYuanGongById(Integer id);
	//修改客户通过ID
	public void updateYuanGongById(YuanGong yuangong);
	
	//通过ID 删除客户
	public void deleteYuanGongById(Integer id);
	
	//插入员工信息
	public void insertYuanGong(YuanGong yuangong);
	//查询部门经理信息
	public void updateManagerByOrganization();
		
	public String selectManagerByYuanGong(String yuangong);
	//在员工表中删除员工后该部门时候是否还有员工
	public Integer selectYuanGongHaveAfterDelete(String org);
	
	public void updateRegisterMessage(YuanGong yuangong);
	
	public YuanGong selectLogin(YuanGong yuangong);
	
	//根据id查员工名
	public String selectYuanGongByNumber(Integer id);
	
	public YuanGong selectYuanGongByYGid(Integer ygid);
	
	public void updatePic(YuanGong yuangong);
	public Integer MaxId();
	public List<YuanGong> selectAllNoPage();
	
	public void changeQuanXian(YuanGong yuangong);
	
	public List<YuanGong> zhiweichongfu(YuanGong yuangong);
	}

